'use strict';

/**
 * @ngdoc function
 * @name webApp.animation:deg45
 * @description
 * # deg45
 * Animation of the webApp
 */
angular.module('webApp')
  .animation('.deg45', function () {
    return{
      addClass: function(ele){
        TweenMax.to(ele,0.5,{
          transform: 'rotate(45deg)',
          transition: 'transform .1s ease-in-out'
        });
      },
      removeClass: function(ele){
        TweenMax.to(ele,0.5,{
          transform: 'rotate(0deg)',
          transition: 'transform .1s ease-in-out'
        });
      }
    }
  });
